<template>
  <div class="box-styl">
    <h1>这是首页</h1>
  </div>
</template>

<script lang="ts" setup>
import { getUserInfoByToken } from "@/api/user";
import { storage } from "@/utils/storage";

const accessToken = storage.get("accessToken");
console.log(accessToken);

getUserInfoByToken(accessToken).then((res) => {
  console.log("进入首页", res.data);
});
</script>

<style lang="less" scoped>
.box-styl {
  margin: 10px;
  .section-box {
    margin: 20px auto;
    width: 300px;
    background-color: #d7ffed;
    border: 1px solid #000;
  }
}
</style>
